﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EmployeesDetails.ascx.cs" Inherits="AdminControl_EmployeesDetails" %>
<p style="text-align: center">
    Danh Sách Nhân Viên</p>
<p style="text-align: center">
    <asp:GridView ID="employeesdetails" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" 
        style="text-align: center" onrowdatabound="employeesdetails_RowDataBound" 
        onrowdeleting="employeesdetails_RowDeleting">
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:BoundField DataField="staffname" HeaderText="Tên Nhân Viên" />
            <asp:BoundField DataField="username" HeaderText="Tên Đăng Nhập" />
            <asp:BoundField DataField="position" HeaderText="Chức Vụ" />
            <asp:BoundField DataField="phone" HeaderText="Số Điện Thoại" />
            <asp:BoundField DataField="address" HeaderText="Địa Chỉ" />
<asp:BoundField DataField="salary" HeaderText="Lương"></asp:BoundField>
<asp:BoundField DataField="joindate" HeaderText="Ngày Thuê"></asp:BoundField>
            <asp:TemplateField HeaderText="Tùy Chỉnh">
                <ItemTemplate>
                    <table class="style1">
                        <tr>
                            <td align="center">
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" 
                                    onclick="LinkButton1_Click">Xóa</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:HyperLink ID="edit" runat="server" NavigateUrl="<%# Bind('edit') %>">Chỉnh sửa</asp:HyperLink>
                            </td>
                        </tr>
                          <tr>
                            <td align="center">
                                <asp:HiddenField ID="HiddenField1" runat="server" Value="<%# Bind('staffID') %>" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>








</p>
